const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  css: {
    loaderOptions: {
      scss: {
        additionalData: '@import "./src/index.scss";',
      },
      postcss: {
        postcssOptions: {
          plugins: ["autoprefixer"],
        },
      },
    },
  },
  devServer: {
    port: 8092,
    proxy: {
      // 接口请求代理
      "/api": {
        secure: false,
        target: "http://127.0.0.1:8888",
      },
    },
  },
});
